API for object roles in PD

Hi,

I am working with the PD APIs for escalation policies and schedules.
https://developer.pagerduty.com/api-reference/b3A6Mjc0ODEyNA-list-escalation-policies
https://developer.pagerduty.com/api-reference/b3A6Mjc0ODE4MQ-list-schedules
Specifically, I am interested in finding which users in the business plan have object level observer permissions on any of these entities. I could not find an API that would give me this information.

Is there an API for this ?
Kindly help.

Thanks,
Satyam

Hi Satyam,

The observer level role is a team role. I would recommend using the List Members of a team API call. Your results will list the person’s team “role” (i.e. observer, responder, manager).

Thanks,
Abbott
Technical Support Specialist

Hi Abott,

According to the documentation here: https://support.pagerduty.com/docs/advanced-permissions#object-roles
some users could be given an Object role also for some escalation policies / schedules.
I am looking for an API that would give this information.

Satyam

Hi Satyam,

The roles you mentioned (Observer, Responder, and Manager) are all team level roles. Ex: A user could have a base role of Observer, but a Team role of Manager. If the team includes escalation policies and schedules, it would be listed in the API call I shared with you.

In the results of the API call, you will see the user’s base role as well as their team role.

Thanks,
Abbott
Technical Support Specialist

Hi Abott, Please excuse. I put the wrong link in my last message. I am referring to the object roles here


What would be the API to find the users who have these object roles for some schedule / escalation policy ?

Hi Satyam,

Thanks for clarifying that for me.

We don’t have an API call for retrieving object roles at this time. I can understand why you are looking to access this, and will submit a Feature Request to our product team.

We appreciate you asking for this as it will help our product team as they build for future features.

Cheers,